package com.xingshentech.ugv.operate.module.bean2;

import java.util.List;

public class UserBean {

    /**
     * accessToken : eyJhbGciOiJIUzI1NiJ9....
     * refreshToken : eyJhbGciOiJIUzI1NiJ9....
     * userInfo : {"id":"4321865648268378112","username":"data","enabled":true,"userType":"0","fullName":"数据隔离","provisionalAuthority":false,"authorities":[],"credentialsNonExpired":true,"accountNonLocked":true,"accountNonExpired":true}
     */

    private String accessToken;
    private String refreshToken;
    private UserInfoBean userInfo;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public UserInfoBean getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoBean userInfo) {
        this.userInfo = userInfo;
    }

    public static class UserInfoBean {
        /**
         * id : 4321865648268378112
         * username : data
         * enabled : true
         * userType : 0
         * fullName : 数据隔离
         * provisionalAuthority : false
         * authorities : []
         * credentialsNonExpired : true
         * accountNonLocked : true
         * accountNonExpired : true
         */

        private String id;
        private String username;
        private boolean enabled;
        private String userType;
        private String fullName;
        private boolean provisionalAuthority;
        private boolean credentialsNonExpired;
        private boolean accountNonLocked;
        private boolean accountNonExpired;
        private String roleType;
//        private List<?  > authorities;

        public String getRoleType() {
            return roleType;
        }

        public void setRoleType(String roleType) {
            this.roleType = roleType;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public boolean isEnabled() {
            return enabled;
        }

        public void setEnabled(boolean enabled) {
            this.enabled = enabled;
        }

        public String getUserType() {
            return userType;
        }

        public void setUserType(String userType) {
            this.userType = userType;
        }

        public String getFullName() {
            return fullName;
        }

        public void setFullName(String fullName) {
            this.fullName = fullName;
        }

        public boolean isProvisionalAuthority() {
            return provisionalAuthority;
        }

        public void setProvisionalAuthority(boolean provisionalAuthority) {
            this.provisionalAuthority = provisionalAuthority;
        }

        public boolean isCredentialsNonExpired() {
            return credentialsNonExpired;
        }

        public void setCredentialsNonExpired(boolean credentialsNonExpired) {
            this.credentialsNonExpired = credentialsNonExpired;
        }

        public boolean isAccountNonLocked() {
            return accountNonLocked;
        }

        public void setAccountNonLocked(boolean accountNonLocked) {
            this.accountNonLocked = accountNonLocked;
        }

        public boolean isAccountNonExpired() {
            return accountNonExpired;
        }

        public void setAccountNonExpired(boolean accountNonExpired) {
            this.accountNonExpired = accountNonExpired;
        }

    }
}
